Skip to content

Indexer auto-injects __typename for inherited indexes#1073

Merged
myronmarston merged 1 commit intoblock:mainfrom
marcdaniels-toast:mdaniels/issue-1029/indexer-changes
Mar 17, 2026
Merged

Indexer auto-injects __typename for inherited indexes#1073
myronmarston merged 1 commit intoblock:mainfrom
marcdaniels-toast:mdaniels/issue-1029/indexer-changes

Conversation

@marcdaniels-toast
Copy link
Contributor

Automatically add __typename to records when indexing via union/interface indexes, ensuring proper type discrimination in mixed-type indexes. The field is injected only when required by the index mapping and absent from the input record, while types with direct indexes continue to omit it.

Part of Issue #1054

Automatically add `__typename` to records when indexing via union/interface indexes, ensuring proper type discrimination in mixed-type indexes. The field is injected only when required by the index mapping and absent from the input record, while types with direct indexes continue to omit it.
Copy link
Collaborator

@myronmarston myronmarston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@myronmarston myronmarston merged commit 05ae6fa into block:main Mar 17, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants